﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OOS.Application.File.Services.Interfaces;

namespace OOS.Application.File
{
    [Route("[Controller]")]
    public class FileAppService:IDynamicApiController
    {
        private readonly IFileService _fileService;

        public FileAppService(IFileService fileService)
        {
            _fileService = fileService;
        }

        /// <summary>
        /// 文件上传
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        [HttpPost]
        public String UploadFile(IFormFile file)
        {
            return _fileService.uploadFile(file);
        }
    }
}
